<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title><%=h @page_title || "Quizy" %></title>
  <%= stylesheet_link_tag "basic" %>
</head>
<body>
  <div id="container">
    <div id="header">
      <div id="header_menu">
        <ul>
          <li><%= link_to("マイページ", {:controller => "mypage"})%>&nbsp;|&nbsp;</li>
          <li><a href="">設定</a>&nbsp;|&nbsp;</li>
          <li><a href="">ヘルプ</a>&nbsp;|&nbsp;</li>
          <li>
            <% if logged_in? %>
              <%= link_to "ログアウト", logout_path  %>
            <% else %>
              <%= link_to "ログイン", login_path %>
            <% end %>
          </li>
        </ul>
      </div>
      <div id="logo">
        <%= link_to image_tag("logo.png", :style => 'border: none;'), index_path %>
      </div>
    </div>

    <div id="contents">
      <%= yield :layout %>
    </div>

    <div id="footer">
      <div id="footer_menu">
        <a href="">利用規約</a> |
        <a href="http://www.ark-system.co.jp/">運営会社について</a> | 
        <a href="">クレジット</a> | 
        <a href="http://arksystem.itbdns.com/blog/">開発者ブログ</a>
      </div>
      <div id="copyright">
        Copyright &copy; 2008 ARK System CO., LTD. All Right Reserved.</div>
    </div>
  </div>
</body>
</html>

